import 'package:english_words/english_words.dart';
import 'package:flutter/material.dart';


void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Startup Name Generator',
      theme: ThemeData(
        primaryColor: Colors.white,
      ),
      home: HomePageWidgets(),
    );
  }
}

class RandomWordsWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
   final wordPair = new WordPair.random();
   return Padding(
       padding: const EdgeInsets.all(8.0),
       child: Text(wordPair.toString()),
   );
  }
}

class HomePageWidgets extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('HomePage'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment:  MainAxisAlignment.center,
          children: <Widget>[
            Text('HomePage', style: TextStyle(fontSize: 30.0, color: Colors.blue),),
            RandomWordsWidget()
          ],
        ),
      ),
    );
  }
}